import { MockMethod } from "vite-plugin-mock";
import { Random } from "mockjs";

export default [
  {
    url: "/getMember",
    method: "post",
    response: () => {
      return {
        code: 1,
        data: [
          {
            id: 1,
            privilegeLevel: 1000,
            username: "张九波",
            age: 26,
            email: "88888888@qq.com",
            describe:
              "我并不希望生活可以过得顺利，但是我希望碰到困难的时候，自己是个合格的对手",
            job: ["前端菜鸟-羊先生"],
            birthday: "2023-08-03 15:05:26",
            company: "阿里巴巴",
            address: "浙江·杭州",
            disabled: false,
            sex: 1,
          },
          {
            id: 2,
            privilegeLevel: 1010,
            username: "羊先生",
            age: 30,
            email: "139928757@qq.com",
            phone: "123456789",
            describe:
              "我并不希望生活可以过得顺利，但是我希望碰到困难的时候，自己是个合格的对手",
            job: ["前端菜鸟-羊先生", "全栈开发"],
            birthday: "2023-08-03 15:05:26",
            company: "阿里巴巴",
            address: "浙江·杭州",
            disabled: true,
            sex: 2,
          },
          {
            id: 3,
            privilegeLevel: 1011,
            username: "羊先生",
            age: 28,
            email: "89388999@qq.com",
            phone: "123456789",
            describe:
              "我并不希望生活可以过得顺利，但是我希望碰到困难的时候，自己是个合格的对手",
            job: ["前端菜鸟-羊先生"],
            birthday: "2023-08-03 15:05:26",
            company: "阿里巴巴",
            address: "浙江·杭州",
            disabled: false,
            sex: 1,
          },
          {
            id: 4,
            privilegeLevel: 1012,
            username: "羊先生",
            age: 28,
            email: "89388999@qq.com",
            phone: "123456789",
            describe:
              "我并不希望生活可以过得顺利，但是我希望碰到困难的时候，自己是个合格的对手",
            job: ["前端菜鸟-羊先生"],
            birthday: "2023-08-03 15:05:26",
            company: "阿里巴巴",
            address: "浙江·杭州",
            disabled: false,
            sex: 2,
          },
          {
            id: 5,
            privilegeLevel: 1013,
            username: "羊先生",
            age: 28,
            email: "89388999@qq.com",
            phone: "123456789",
            describe:
              "我并不希望生活可以过得顺利，但是我希望碰到困难的时候，自己是个合格的对手",
            job: ["前端菜鸟-羊先生"],
            birthday: "2023-08-03 15:05:26",
            company: "阿里巴巴",
            address: "浙江·杭州",
            disabled: false,
            sex: 2,
          },
          {
            id: 6,
            privilegeLevel: 1014,
            username: "羊先生",
            age: 28,
            email: "89388999@qq.com",
            phone: "123456789",
            describe:
              "我并不希望生活可以过得顺利，但是我希望碰到困难的时候，自己是个合格的对手",
            job: ["前端菜鸟-羊先生"],
            birthday: "2023-08-03 15:05:26",
            company: "阿里巴巴",
            address: "浙江·杭州",
            disabled: false,
            sex: 2,
          },
          {
            id: 7,
            privilegeLevel: 1015,
            username: "羊先生",
            age: 28,
            email: "89388999@qq.com",
            phone: "123456789",
            describe:
              "我并不希望生活可以过得顺利，但是我希望碰到困难的时候，自己是个合格的对手",
            job: ["前端菜鸟-羊先生"],
            birthday: "2023-08-03 15:05:26",
            company: "阿里巴巴",
            address: "浙江·杭州",
            disabled: false,
            sex: 2,
          },
          {
            id: 8,
            privilegeLevel: 1016,
            username: "羊先生",
            age: 28,
            email: "89388999@qq.com",
            phone: "123456789",
            describe:
              "我并不希望生活可以过得顺利，但是我希望碰到困难的时候，自己是个合格的对手",
            job: ["前端菜鸟-羊先生"],
            birthday: "2023-08-03 15:05:26",
            company: "阿里巴巴",
            address: "浙江·杭州",
            disabled: false,
            sex: 2,
          },
          {
            id: 9,
            privilegeLevel: 1017,
            username: "羊先生",
            age: 28,
            email: "89388999@qq.com",
            phone: "123456789",
            describe:
              "我并不希望生活可以过得顺利，但是我希望碰到困难的时候，自己是个合格的对手",
            job: ["前端菜鸟-羊先生"],
            birthday: "2023-08-03 15:05:26",
            company: "阿里巴巴",
            address: "浙江·杭州",
            disabled: false,
            sex: 2,
          },
          {
            id: 10,
            privilegeLevel: 1018,
            username: "羊先生",
            age: 28,
            email: "89388999@qq.com",
            phone: "123456789",
            describe:
              "我并不希望生活可以过得顺利，但是我希望碰到困难的时候，自己是个合格的对手",
            job: ["前端菜鸟-羊先生"],
            birthday: "2023-08-03 15:05:26",
            company: "阿里巴巴",
            address: "浙江·杭州",
            disabled: false,
            sex: 2,
          },
          {
            id: 11,
            privilegeLevel: 1019,
            username: "羊先生",
            age: 28,
            email: "89388999@qq.com",
            phone: "123456789",
            describe:
              "我并不希望生活可以过得顺利，但是我希望碰到困难的时候，自己是个合格的对手",
            job: ["前端菜鸟-羊先生"],
            birthday: "2023-08-03 15:05:26",
            company: "阿里巴巴",
            address: "浙江·杭州",
            disabled: false,
            sex: 2,
          },
        ],
        pageCount: 2,
      };
    },
  },
  {
    url: "/delMember",
    method: "post",
    response: () => {
      return {
        code: 1,
        data: [],
        status: "success",
      };
    },
  },
  {
    url: "/addMember",
    method: "post",
    response: () => {
      return {
        code: 1,
        data: [],
        status: "success",
      };
    },
  },
  {
    url: "/editMember",
    method: "post",
    response: () => {
      return {
        code: 1,
        data: [],
        status: "success",
      };
    },
  }
] as MockMethod[];
